package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.AppointmentTimesVo;
import com.zzyl.vo.ReservationVo;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface CustomerReservationService {
    //新增预约
    void add(ReservationDto reservationDto);

    //分页查询预约
    PageResponse<ReservationVo> PaginationQuery(Integer pageNum, Integer pageSize, Integer status);


    //取消预约
    void cancelReservation(Long id);



    //查询取消预约数量
//    int getCancelledReservationCount(Long updateBy);
    String getCancelledReservationCount(Long userId);




    //查询每个时间段剩余预约次数
    List<Map<String, Object>> countByTime(Long time);

}
